import http from '../../utils/http';
const getAccount = (data: any) => {
  return http({
    url: '/getAccount',
    method: 'post',
    data,
  });
};

const add = (data: any) => {
  return http({
    url: '/addAccount',
    method: 'post',
    data,
  });
};
const del = (data: any) => {
  return http({
    url: '/deleteAccount',
    method: 'delete',
    data,
  });
};
const edit = (data: any) => {
  return http({
    url: 'updateAccount',
    method: 'post',
    data,
  });
};

export { getAccount, add, edit, del };
